/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dialog;

import main.Demo;
import java.awt.Toolkit;
import javax.swing.JDialog;

/**
 *
 * @author phat10130059
 */
public class ShowHistoryDialog extends JDialog {

    public Demo jFrame;
    public ShowHistory showHistory;

    public ShowHistoryDialog(Demo demo) {

        this.jFrame = demo;

        setTitle(demo.TitleShowHistory);

        showHistory = new ShowHistory(this, this.jFrame);
//        runBlockWindow.isRunning = true;
        
        add(showHistory);
        setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        setModalityType(ModalityType.APPLICATION_MODAL);
        setResizable(false);
        setSize(Toolkit.getDefaultToolkit().getScreenSize());
        
        

        
//        this.jFrame.setVisible(false);

    }
}
